package cn.well.cloud.core.generator;

import cn.well.cloud.generator.action.GunsGeneratorConfig;
import cn.well.cloud.generator.action.model.GenQo;

public class GenerateCode {
	public static void main(String[] args){	    
	    /**
         * Mybatis-Plus的代码生成器:
         *      mp的代码生成器可以生成实体,mapper,mapper对应的xml,service
         */
	    GenQo genQo = new GenQo();
	    genQo.setTableName("sn_map_node");
	    genQo.setPrefix("sn_");
	    //genQo.setBizName("报销管理");
        //genQo.setServiceName("expense"); 
        genQo.setAuthor("zhh");
        GunsGeneratorConfig gunsGeneratorConfig = new GunsGeneratorConfig(genQo);
        gunsGeneratorConfig.doMpGeneration();

        /**
         * 扩展生成器:
         *     扩展的代码生成器可以生成ext/xml,controller
         */
        gunsGeneratorConfig.doRestGeneration();   
	}
}
